package com.itic.appbase.framework.type;

public enum UsersStoreType {
	recommend("SA001","店主推荐"),hot("SA002","火爆单品");
	private String type;
	private String name;
	UsersStoreType(String type,String name){
		this.name = name;
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static UsersStoreType getUsersStoreType(String state){
		UsersStoreType usersStoreType = null;
		switch(state){
		case"SA001":
			usersStoreType = UsersStoreType.recommend;
			break;
		case"SA002":
			usersStoreType = UsersStoreType.hot;
			break;
			default:break;
		}
		return usersStoreType;
	}
}
